/**
 * Copyright 2012 Alfredo "Rainbowbreeze" Morresi
 * 
 * This file is part of Apps4Italy PM10 project.
 * 
 * PM10 is free software: you can redistribute it and/or modify it under the
 * terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * PM10 is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with Foobar. If not, see http://www.gnu.org/licenses/.
 */
package it.rainbowbreeze.eureka.data;

import android.net.Uri;
import android.provider.BaseColumns;

/**
 * Examples:
 * http://www.google.com/codesearch/p?hl=en#I19AnJAT6GE/trunk/src/com/joulespersecond/oba/provider/ObaContract.java
 * 
 * 
 * @author Alfredo "Rainbowbreeze" Morresi
 */
public class EurekaContract {
    // ------------------------------------------ Private Fields

    // ------------------------------------------- Public Fields
    public static final String AUTHORITY = "it.rainbowbreeze.eureka.provider";
    public static final Uri AUTHORITY_URI = Uri.parse("content://" + AUTHORITY);

    // -------------------------------------------- Constructors

    // ----------------------------------------- Private Classes

    // ------------------------------------------ Public Classes
    public static class QualityPoint implements BaseColumns {
        public static final String PATH = "QualityPoint";
        public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, PATH);
        public static final String CONTENT_TYPE = "vnd.android.cursor.dir/" + AUTHORITY + "." + PATH;
        public static final String CONTENT_TYPE_ITEM = "vnd.android.cursor.item/" + AUTHORITY + "." + PATH;
        public static final String TABLE_NAME = PATH;
        
        /** */
        public static final String CATEGORYID = "categotyId";
        /** */
        public static final String MEASURE_ID = "measureId";
        /** The referring radius of the query where the data was get */
        public static final String REFERRING_RADIUS = "referringRadius";
        /** Data latitude expressed in microdegrees (degrees * 1E6) */
        public static final String LATITUDE = "latitude";
        /** Data longitude expressed in microdegrees (degrees * 1E6) */
        public static final String LONGITUDE = "longitude";
        /** True radius of the measure, the one to display on the map */
        public static final String RADIUS = "radius";
        /** */
        public static final String SCORE = "score";
        /** */
        public static final String VALUE = "value";
        /** When the data have been read from the server, timestamp */
        public static final String READING_TIMESTAMP = "readingTimestamp";
        /** The time interval the data is referred to */
        public static final String ACQUISITION_TIMESTAMP = "referenceTimestamp";
        /** */
        public static final String DEFAULT_SORT_ORDER = _ID;
        
        /** Class cannot be instantiated */
        private QualityPoint() {};
    }
    
    // ------------------------------------------ Public Methods

    // ----------------------------------------- Private Methods
}
